Blink an LED using a PIC16F84A in assembly language

This tutorial is to help us on how to design, build, and code in assembly language how to blink an LED connected to a PIC16F84A microcontroller. Firstly, you will design the schematic below on proteus software and save it.
You need to watch the video above in order to understand how this circuit works.


blink LED

In this project, you will need

  1. a PIC16F84A microcontroller.
  2. two capacitors and a crystal oscillator: used to produce an input clock frequency into the microcontroller
    • 3 resistors
    • two of resistance 10K: pulldown resistors to ubstruct any electric current from below.
    • one of resistance 220 ohm: to limit the output supplied to the LED in order not to destroy it.
  3. a 5V dc input voltage source
  4. a blue LED
  5. a push-button: it resets the microcontroller in case of any failure
    and a switch: to decide whether a 1 bit or a 0 bit is received by the microcontroller.

  6. Click on the link below to download
    Source code